﻿<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" >
<%Response.ContentType = "text/xml"%>
<%
'#################################################################################
'## UnWritten Open Source Blog Engine
'#################################################################################
'## Copyright (C) 2008 Luigi Violin
'##
'## This program is free software: you can redistribute it and/or modify
'## it under the terms of the GNU General Public License as published by
'## the Free Software Foundation, either version 2 of the License, or
'## (at your option) any later version.
'##
'## This program is distributed in the hope that it will be useful,
'## but WITHOUT ANY WARRANTY; without even the implied warranty of
'## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
'## GNU General Public License for more details.
'##
'## You should have received a copy of the GNU General Public License
'## along with this program.  If not, see <http://www.gnu.org/licenses/>.
'##
'## You can obtain support from our forums at:
'##     <http://www.unwrittenblog.com/forums/>
'## Contact the author directly:
'##     <zaamit@hotmail.com/>
'##
'#################################################################################
%>
<!--#include virtual="/includes/core.asp"-->
<channel>
    <title><%=strip_html(zb_name)%></title>
    <link><%=zb_root%></link>
    <description><%=zb_description%></description>
    <language>en</language>
    <generator>UnWritten Open Source Blog Engine (v0.6.0 Beta)</generator>
<%
dbRS2.open "select * from " & db_prefix & "posts where ent_type = 1 and publish_status = 1 order by pdate desc limit 5",dbConn
  do while not dbRS2.eof
%>	<item>
    		<title><![CDATA[<%=strip_html(dbRS2("title"))%>]]></title>
        	<link><%=zb_root%>/?pg=<%=dbRS2("ent_name")%></link>
        	<guid isPermaLink="true"><%=zb_root%>/?pg=<%=dbRS2("ent_name")%></guid>
        	<pubDate><%=dat2rss(dbRS2("pdate_gmt"),"GMT")%></pubDate>
        	<comments><%=zb_root%>/?pg=<%=dbRS2("ent_name")%>#comments</comments>
        	<description><![CDATA[<%=strip_html(dbRS2("excerpt")) & "..."%>]]></description>
<%dbRS3.open "select text from " & db_prefix & "posttags, " & db_prefix & "tags where tagid = " & db_prefix & "tags.id and postid = " & dbRS2("id"),dbConn
do while not dbRS3.eof%>		<category domain="<%=zb_root%>/search.asp?s=<%=replace(dbRS3("text")," ","%20")%>"><%=dbRS3("text")%></category>
<%
dbRS3.movenext
loop
dbRS3.close
%>	</item><%
    dbRS2.movenext
  loop
dbRS2.close
%>
</channel>
</rss>
<!--#include virtual="/includes/garbage-collector.asp"-->